<%@ page import="com.shining.controller.UserInfoController" %>
<%@ page import="com.shining.domain.User" %>
<%@ page import="java.util.List" %>
<%--
  Created by IntelliJ IDEA.
  User: ipaynow0106
  Date: 2017/7/4
  Time: 19:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>user</title>
</head>
<body>
<table border="1">
    <tr>
        <td>id</td>
        <td>name</td>
        <td>creator</td>
        <td>createTime</td>
    </tr>
    <%
        UserInfoController dao = new UserInfoController();
        List<User> list = dao.userList();
        for (User tl : list) {%>
    <tr>
        <td><%=tl.getId() %></td>
        <td><%=tl.getName() %></td>
    </tr>
    <%
        }
    %>
</table>
</body>
</html>
